<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="confirm">
<input type="hidden" name="order_id" value="<!--{$tpl_order_id}-->">
<!--{foreach key=key item=item from=$arrSearchHidden}-->
	<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
<!--{/foreach}-->
<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="menuclass">
<table summary="<!--{$tpl_subtitle}-->">
<tr>
	<th>処理日</th><th>通知メール</th><th>件名</th>
</tr>
	<!--{section name=cnt loop=$arrMailHistory}-->
	<tr align="center">
	<td><!--{$arrMailHistory[cnt].send_date|sfDispDBDate|escape}--></td>
	<!--{assign var=key value="`$arrMailHistory[cnt].template_id`"}-->
	<td><!--{$arrMAILTEMPLATE[$key]|escape}--></td>
	<td>
	<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('./mail_view.php?send_id=<!--{$arrMailHistory[cnt].send_id}-->','mail_view','650','800'); return false;"><!--{$arrMailHistory[cnt].subject|escape}--></a>
	</td>
	</tr>
	<!--{/section}-->
</table>
</div>



<div class="menuclass">
<dl>
<dt>テンプレート<span class="red"> *</span></dt>
<dd>
	<!--{assign var=key value="template_id"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<select name="template_id" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" onchange="fnModeSubmit('change', '', '');">
	<option value="" selected="selected">選択してください</option>
	<!--{html_options options=$arrMAILTEMPLATE selected=$arrForm[$key].value|escape}-->
	</select>
</dd>
<dt>メールタイトル<span class="red"> *</span></dt>
<dd>
	<!--{assign var=key value="subject"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<input type="text" name="<!--{$arrForm[$key].keyname}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
</dd>
</dl>
</div>


<div class="menuclass">
<table summary="メールテンプレート">
<tr>
<th>ヘッダー</th>
	<td>
	<!--{assign var=key value="header"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<textarea  name="<!--{$arrForm[$key].keyname}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="75" rows="12" class="area75"><!--{$arrForm[$key].value|escape}--></textarea>
	</td>
</tr>
<tr>
	<td colspan="2" align="center" height="40">動的データ挿入部分</td>
</tr>
<tr>
<th>フッター</th>
	<td>
	<!--{assign var=key value="footer"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<textarea  name="<!--{$arrForm[$key].keyname}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="75" rows="12" class="area75"><!--{$arrForm[$key].value|escape}--></textarea>
	</td>
</tr>
</table>
</div>


<div class="btn_box">
<input type="button" name="back" value="検索結果へ戻る" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_ORDER}-->'); fnModeSubmit('search','',''); return false;" />
<input type="submit" name="subm" value="送信内容を確認"/>
</div>


</form>
</div>
</div>
